package cn.sitcat.service.maria;

import cn.sitcat.dao.maria.UserMapperForMaria;
import cn.sitcat.entity.maria.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author liusong
 * @date 2019/6/17 11:49
 * @desc
 */
@Service
public class MariaServiceImpl implements MariaService {
    @Autowired
    private UserMapperForMaria userMapper;

    @Transactional("MariaTransactionManager")
    public List<User> getUserList() {
        return userMapper.selectUserList();
    }
}
